package com.hz.house.enums;

/**
 * 用户经验类型枚举
 */
public enum ExperienceTypeEnum {
    /**
     * 签到加经验
     */
    sign("每日签到", 10),
    /**
     * 回答问题加经验
     */
    answer("您发表了回答", 20),
    /**
     * 发帖加经验
     */
    post("您发表了帖子", 15),
    /**
     * 评论加经验
     */
    comment("您发表了评论", 5);

    private String action;
    private Integer xpValue;

    ExperienceTypeEnum(String action, int xpValue) {
        this.action = action;
        this.xpValue = xpValue;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Integer getXpValue() {
        return xpValue;
    }

    public void setXpValue(Integer xpValue) {
        this.xpValue = xpValue;
    }
}
